/* Custom fonts */
@font-face {
  font-family: 'Palatino';
  font-style: normal;
  font-weight: 400;
  src: local('Palatino'), local('Palatino-Regular'), url('../fonts/PalatinoLinotype.woff') format('woff');
}

@font-face {
  font-family: 'Palatino';
  font-style: normal;
  font-weight: 700;
  src: local('Palatino'), local('Palatino-Bold'), url('../fonts/PalatinoLinotypeBold.woff') format('woff');
}

html, body { 
  height: 100%; 
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Palatino', serif;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.d-none {
  display: none !important;
}

@media (orientation: portrait) {
  .d-sm-block {
    display: block !important;
  }
}

@media (orientation: landscape) and (min-height: 764px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }
}

.flex-container {
  display: flex;
  justify-content: center;
  width: 100%; 
  height: 100%;
}

.flex-content { 
    flex-grow: 1; 
    border: none; 
    margin: 0; 
    padding: 0; 
}

.flexnav {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: end;
  bottom: 0;
  width: 100%;
  max-width: 1024px;
}

.btnlist {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: rgba(0,0,0,0.5);
}

.btnlist .btn-group {
  display: inline-flex;
  gap: 4px;
  width: 100%;
}

.btnlist button{
  color: rgb(0, 0, 0); /* White text */
  background-color: rgb(225, 225, 225);
  padding: 10px 30px; /* Some padding */
  margin-bottom: 4px;
  cursor: pointer; /* Pointer/hand icon */
  width: 100%; /* Set a width if needed */
  display: block; /* Make the buttons appear below each other */
  border: none;
}

.btnlist button:hover {
  color:rgb(0, 0, 0);
  background-color: rgb(151, 192, 255) !important;
}

.btnlist button.headerbtn {
  margin-top: 16px;
  color: white; /* White text */
  background-color: black; /* Green background */
}

.btnlist button.headerbtn:hover {
  color:rgb(255, 255, 255);
  background-color: rgb(38, 71, 121) !important; /* Darker background on mouse-over */
}

.btnlist button.active {
  color:rgb(255, 255, 255);
  background-color: rgb(46, 123, 238) !important; /* Darker background on mouse-over */
}

#baufeld, #nutzung {
  margin-top: 20px;
  width: 100%;
}

#baufeld {
  margin-top: 5px;
}

@media (orientation: landscape) {
  .flexnav {
    width: unset;
    height: 100%;
    left: 10px;
    height: 100%;
    justify-content: center;
  }
}

.hidden {
  display: none;
}

.overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

/* Annotations */

.annotation {
  display: flex;
  align-items: center;
  position: absolute;
  visibility: hidden;
  top: 50%;
  left: 50%;
  z-index: 3;
  background-color: white;
  padding: 10px;
  padding-right: 18px;
  padding-bottom: 18px;
  color: white;
  font-size: 16px;
}

.annotation-container {
  background-color: #DA8B80;
  width: 355px;
  box-shadow: 8px 8px black;
}

.annotation-header {
  position: relative;
  height: 220px;
}

.annotation-header button {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background-color: #DA8B80;
  border: none;
  padding: 10px;
  color: white;
  cursor: pointer;
  z-index: 2;
}

.annotation-header .annotation-title {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #DA8B80;
  padding: 8px 12px 0 16px;
}

.annotation-header .annotation-title h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  margin-bottom: -7px;
}

.annotation-content {
  padding: 16px;
}

.annotation-content .annotation-text {
  margin: 0;
}

.annotation-content .annotation-link {
  background-color: transparent;
  border: none;
  margin-top: 10px;
}

.annotation-content .annotation-link a {
  font-family: 'Palatino', serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  text-decoration: none;
}


@media (min-width: 768px) {
  .annotation-container {
    width: 400px;
  }
  .annotation {
    font-size: 20px;
  }
  .annotation-header .annotation-title {
    padding: 10px 20px 0 20px;
  }
  .annotation-content {
    padding: 20px;
  }
  .annotation-header .annotation-title h3 {
    font-size: 30px;
  }
  .annotation-content .annotation-link {
    margin-top: 20px;
  }
  .annotation-content .annotation-link a {
    font-size: 20px;
  }
}